home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / python2.4 / timefuncs.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-18  |  442 b   |  24 lines

  1. /*  timefuncs.h
  2.  */
  3.  
  4. /* Utility function related to timemodule.c. */
  5.  
  6. #ifndef TIMEFUNCS_H
  7. #define TIMEFUNCS_H
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12.  
  13. /* Cast double x to time_t, but raise ValueError if x is too large
  14.  * to fit in a time_t.  ValueError is set on return iff the return
  15.  * value is (time_t)-1 and PyErr_Occurred().
  16.  */
  17. PyAPI_FUNC(time_t) _PyTime_DoubleToTimet(double x);
  18.  
  19.  
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif  /* TIMEFUNCS_H */
  24.